﻿<CodeSnippetTabbed DocLink="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxChart-1#axes">
    <CodeSnippetTabPage Text="Razor">@(@"<DxChart Data=""SalesData""
         CssClass=""mw-1100"">
    <DxChartTitle Text=""Sales amount"" />
    <DxChartLegend Position=""RelativePosition.Outside"" />
    <DxChartValueAxis>
        <DxChartAxisLabel Format=""ChartAxisLabelFormat.Decimal""></DxChartAxisLabel>
        <DxChartAxisTitle Text=""Amount""></DxChartAxisTitle>
    </DxChartValueAxis>
    <DxChartValueAxis Name=""TotalAxis"" Position=""HorizontalEdge.Right"">
        <DxChartAxisTitle Text=""Total Amount""></DxChartAxisTitle>
    </DxChartValueAxis>
    <DxChartArgumentAxis>
        <DxChartAxisTitle Text=""Cities""></DxChartAxisTitle>
    </DxChartArgumentAxis>
    <DxChartFullStackedBarSeries Name=""2017""
                                 Filter=""@((SaleInfo s) => s.Date.Year == 2017)""
                                 AggregationMethod=""Enumerable.Sum""
                                 ArgumentField=""@(s => s.City)""
                                 ValueField=""@(s => s.Amount)"" />
    <DxChartFullStackedBarSeries Name=""2018""
                                 Filter=""@((SaleInfo s) => s.Date.Year == 2018)""
                                 AggregationMethod=""Enumerable.Sum""
                                 ArgumentField=""@(s => s.City)""
                                 ValueField=""@(s => s.Amount)"" />
    <DxChartFullStackedBarSeries Name=""2019""
                                 Filter=""@((SaleInfo s) => s.Date.Year == 2019)""
                                 AggregationMethod=""Enumerable.Sum""
                                 ArgumentField=""@(s=> s.City)""
                                 ValueField=""@(s => s.Amount)"" />
    <DxChartSplineSeries Name=""Total""
                         AggregationMethod=""Enumerable.Sum""
                         ArgumentField=""@((SaleInfo s)=> s.City)""
                         ValueField=""@(s => s.Amount)""
                         Axis=""TotalAxis"" />
</DxChart>")</CodeSnippetTabPage>
</CodeSnippetTabbed>
